package com.leo.customer.entity.pojo

import com.fasterxml.jackson.annotation.JsonBackReference
import com.leo.customer.entity.CreateTimeAndUpdateTime
import javax.persistence.*

@Entity
data class UserRole(
        var roleName: String = "",
        var roleCode: Int = 0,

        @JsonBackReference
        @ManyToMany(mappedBy = "userRoles")
        var users: MutableList<User> = mutableListOf()
) : CreateTimeAndUpdateTime()
